package com.epam.rd.generics;

class Apple extends Fruit implements Comparable<Apple> {

    private int quality;

    public Apple() {
    }

    public Apple(int qual) {
        this.quality = qual;
    }

    public int compareTo(Apple o) {
        return (int) Math.signum(quality - o.quality);
    }
}